package com.xuanmiao.smsback.service.email.event;

import org.springframework.context.ApplicationContext;
import org.springframework.context.event.ApplicationContextEvent;

/**
 * 邮件发送传播事件
 */
public class SendEmailEvent extends ApplicationContextEvent {

    private SendEmailObject object;

    /**
     * Create a new ContextStartedEvent.
     *
     * @param source the {@code ApplicationContext} that the event is raised for
     *               (must not be {@code null})
     */
    public SendEmailEvent(ApplicationContext source) {
        super(source);
    }

    public SendEmailEvent(ApplicationContext source, SendEmailObject object) {
        super(source);
        this.object = object;
    }

    public SendEmailObject getObject() {
        return object;
    }

    public void setObject(SendEmailObject object) {
        this.object = object;
    }
}
